package com.fh.auth;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description:
 * @author： qiujunda
 * @date： 2020/12/17 14:21
 */
@Configuration
@ConfigurationProperties("black-white-list")
@EnableConfigurationProperties(BlackWhiteListConf.class)
public class BlackWhiteListConf {

    boolean openBlack ;

    boolean openWhite ;

    List<BlackWhiteList> blackLists;

    List<BlackWhiteList> whiteLists;

    public List<BlackWhiteList> getBlackLists() {
        return blackLists;
    }

    public void setBlackLists(List<BlackWhiteList> blackLists) {
        this.blackLists = blackLists;
    }

    public List<BlackWhiteList> getWhiteLists() {
        return whiteLists;
    }

    public void setWhiteLists(List<BlackWhiteList> whiteLists) {
        this.whiteLists = whiteLists;
    }

    public boolean isOpenBlack() {
        return openBlack;
    }

    public void setOpenBlack(boolean openBlack) {
        this.openBlack = openBlack;
    }

    public boolean isOpenWhite() {
        return openWhite;
    }

    public void setOpenWhite(boolean openWhite) {
        this.openWhite = openWhite;
    }
}
